home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / ODF / OS / FWGraphx / FWWinDIB.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  1.4 KB  |  61 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinDIB.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWWINDIB_H
  11. #define FWWINDIB_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifdef FW_BUILD_WIN
  18.  
  19. #ifndef SLWINDIB_H
  20. #include "SLWinDIB.h"
  21. #endif
  22.  
  23. #ifndef FWSTRMRW_H
  24. #include "FWStrmRW.h"
  25. #endif
  26.  
  27. //========================================================================================
  28. // DIB utilities
  29. //========================================================================================
  30.  
  31. unsigned short
  32. SL_API        FW_DIBAcquireColorTable(FW_WinDIB dib, FW_SColor** colors);
  33.  
  34. HBITMAP
  35. SL_API        FW_DIBConvertToBitmap(FW_WinDIB dib, HPALETTE hPal);
  36.  
  37. FW_WinDIB
  38. SL_API        FW_DIBConvertFromBitmap(HBITMAP bitmapHandle, short bitDepth, HPALETTE hPal);
  39.  
  40. HPALETTE
  41. SL_API        FW_DIBGetPalette(FW_WinDIB dib);
  42.  
  43. FW_WinDIB
  44. SL_API        FW_DIBCreate(
  45.                 short bitDepth, short width, short height,
  46.                 short nbColors, const FW_SColor* colorTable,
  47.                 const void* pixels);
  48.  
  49. FW_WinDIB
  50. SL_API        FW_DIBCreateCopy(FW_WinDIB dib);
  51.  
  52. FW_WinDIB
  53. SL_API        FW_DIBLoadFromStream(FW_CReadableStream& stream, FW_Boolean bFileHeader);
  54.  
  55. void
  56. SL_API        FW_DIBSaveToStream(FW_CWritableStream& stream, FW_WinDIB dib, FW_Boolean bFileHeader);
  57.  
  58. #endif // FW_BUILD_WIN
  59.  
  60. #endif // FWWINDIB_H
  61.